import { kgjHttp as http } from '@/services/http';
import type { UserIncreaseTrend, UserIncreaseTrendResult, SummaryCoreDto } from '@/types/api/crm-kgj/statistics';

// 销售渠道-今日统计
export const saleSummaryCore = (params?: SummaryCoreDto) => {
  return http({
    method: 'get',
    url: '/api/salesummary/core',
    params
  });
};
// 销售渠道-趋势图
export const saleSummaryTrend = (params: UserIncreaseTrend) => {
  return http<UserIncreaseTrendResult>({
    method: 'get',
    url: '/api/salesummary/trend',
    params
  });
};
